Page({
  data: {
    windowWidth:0,
    windowHeight:0
  },

  onReady() {
    var res = my.getSystemInfoSync();
    this.setData({
      windowWidth : res.windowWidth,
      windowHeight : res.windowHeight,
    });
  },
});
